home *** CD-ROM | disk | FTP | other *** search
/ MacHome 2001 January / MacHome Magazine Demo Disc January 2001.iso / mac / Software / Networking / InterMapper 3.0 - PPC.sea / InterMapper 3.0 - PPC / InterMapper™ 3.0-PPC / InterMapper™ 3.0-PPC.rsrc / PrTy_160_com.dartware.tcp.irc < prev    next >
Encoding:
Text File  |  2000-07-24  |  2.1 KB  |  68 lines

  1. <!-- 
  2.     IRC (com.dartware.tcp.irc)
  3.     Copyright © 2000 Dartware, LLC. All rights reserved.
  4. -->
  5.  
  6. <header>
  7.     type            =     "tcp-script"
  8.     package            =     "com.dartware"
  9.     probe_name        =    "tcp.irc"
  10.     human_name        =    "IRC"
  11.     version            =     "1.1"
  12.     address_type    =     "IP"
  13.     port_number        =    "6667"
  14.     
  15.     old_protocol    =     "8"            # Backward compat. with old numbering scheme.
  16.     old_script        =     "8101"
  17.  
  18. </header>
  19.  
  20. <description>
  21.  
  22. ≤GB≥Internet Relay Chat (IRC)≤P≥
  23.  
  24. This probe tests whether InterMapper can register a connection with an IRC server. This probe establishes a connection to the IRC server and issues the “PASS”, “NICK”, and “USER” commands. It verifies that the IRC server returns a particular string, in its welcome message, for example.
  25.  
  26. ≤i≥Password≤p≥ is the connection password. This parameter is passed using the “PASS” command.
  27.  
  28. ≤i≥Nickname≤p≥ gives the connection a nickname. This parameter is passed using the “NICK” command.
  29.  
  30. ≤i≥Username≤p≥ specifies the username, hostname, servername and realname of the new user. Typically, the hostname and servername are ignored for client connections. The realname must be prefixed with a ':'.
  31.  
  32. ≤i≥String to verify≤p≥ is a string to verify in the data returned by the IRC server.  For example, you might check for a string returned in the IRC server's welcome message.
  33.  
  34. </description>
  35.  
  36. <parameters>
  37.  
  38. "Password"            =    "password"
  39. "Nickname"            =    "Intermapper"
  40. "Username"            =     "InterMapper 0 . :Monitoring Stability"
  41. "String to verify"    =    "Welcome"
  42.  
  43. </parameters>
  44.  
  45. <script>
  46.  
  47. CONN #60 (connect timeout in secs)
  48. WAIT #30 @IDLE (idle timeout in secs)
  49. DISC @DISCONNECT
  50. SEND "PASS ${Password}\r\n"
  51. SEND "NICK ${Nickname}\r\n"
  52. SEND "USER ${Username}\r\n"
  53. EXPT "${String to verify}"i else goto @NO_MATCH
  54. SEND "QUIT\r\n"
  55. //// You might want to put an EXPT line here if you want to wait for the IRC server's response before disconnecting.
  56. DONE OKAY
  57.  
  58. @IDLE:
  59. DONE DOWN "[IRC] No data for ${_IDLETIMEOUT} seconds.  Was expecting \"${_STRINGTOMATCH}\". [Line ${_IDLELINE}]"
  60.  
  61. @NO_MATCH:
  62. DONE DOWN "[IRC] \"${String to verify}\" not found in returned IRC data."
  63.  
  64. @DISCONNECT:
  65. DONE DOWN "[IRC] Disconnected from port ${_REMOTEPORT} after ${_SECSCONNECTED} seconds."
  66.  
  67. </script>
  68.